<div class="navbar">
    <div class="left">
        <!--suppress HtmlUnknownTarget -->
        <a href="{% url '' %}">
            <button>首页</button>
        </a>
    </div>
    <div class="right">
        {% if qq %}
        <span>已登录QQ号：
            <span id="navbar-qq">{{ qq }}</span>
            ，金币：
            <span id="navbar-coin">{{ coin }}</span>
        </span>
        <!--suppress HtmlUnknownTarget -->
        <a href="{% url 'logout' %}">
            <button>退出登录</button>
        </a>
        {% else %}
        <span>未登录</span>
        <!--suppress HtmlUnknownTarget -->
        <a href="{% url 'login' %}">
            <button>登录</button>
        </a>
        {% endif %}
    </div>
</div>